window.onload = function(){ //页面加载完后开始
    //获取两个样式
    let more1 = document.getElementById('more1');
    let most1 = document.getElementById('most1')
    let x = 0;
    //
    //当图标点击事件发生时,添加关键帧动画
    most1.addEventListener('click',f)
    function e() {
        alert("click")
        // if (x === 0){
        more1.style.setProperty("animation","trans 300ms linear")
        more1.style.setProperty("animation-fill-mode","forwards")
        more1.style.setProperty("z-index","888")
        x = 1
        console.log(x)
        // }
        // else if (x === 1){
        //     more.style.setProperty("animation","none")
        //     more.style.setProperty("animation-fill-mode","forwards")
        //     more.style.setProperty("z-index","-1")
        //     x = 0
        // }
    }
    function f() {
        alert("click")
    }
}
